package com.thread.threadPool;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CyclicBarrier;

/**
 * @author wangyingjie
 * @date
 * @remark
 */
public class ThreadPoolDemo {
    public static void main(String[] args) {
//        //开辟6条线程的线程池
//        ExecutorService threadPool = Executors.newFixedThreadPool(6);
//        //提交2个线程任务给线程池
//        threadPool.submit(new MyRunnable_1());
//        threadPool.submit(new MyRunnable_1());
//        //关闭线程池
//        threadPool.shutdown();
        new BigDecimal("");
        BigDecimal.valueOf(Double.valueOf(null));
        BigDecimal.valueOf(Double.valueOf(null));
        //循环屏障
        CyclicBarrier cyclicBarrier = new CyclicBarrier(20);
        List<Object> list = new ArrayList<>();
        Map<String,Object> map = new HashMap<>();
    }
}
